package com.bluemedia.bookproject.pages;

import com.vaadin.terminal.ExternalResource;
import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.VerticalLayout;
import org.vaadin.navigator7.Page;
import org.vaadin.navigator7.PageLink;

/**
 * Created by IntelliJ IDEA.
 * User: Marek Rucki
 * Date: 12.04.11
 * Time: 11:19
 */
@Page
public class SimpleContentPage extends VerticalLayout {

    public SimpleContentPage() {
        addComponent( new Label("I'm on a page") );
        addComponent(new PageLink("n", SimpleNextPage.class));
        addComponent( new Label("There is no much content here") );

        Link link = new Link("product link", new ExternalResource("#Product") );
        addComponent(link);

        Link pageLink = new PageLink("product pageLink", ProductPage.class);
        addComponent(pageLink);

        Link editLink = new PageLink("edit", BookEditPage.class);
        addComponent(editLink);

        Link textFieldLink = new PageLink("textfield", TextFieldSample.class);
        addComponent(textFieldLink);
    }

}
